

<div style="border-bottom:5px solid silver;color:#392E1A;padding-bottom:10px;padding-top:10px;font-size:35px;">
עריכת הרשאות

</div>
<div style="padding:15px;">
admin: יכול לערוך ולאשר חברות ומשתמשים<br>
user: יכול לצפות ולהוסיף חברות לאישור
</div>
<table width="100%" style="text-align:right;" dir="rtl">
<thead >
<th style="text-align:right;border-right:1px solid silver;border-bottom:1px solid silver;padding:10px;">ID</th>
<th style="text-align:right;border-right:1px solid silver;border-bottom:1px solid silver;padding:10px;">Name</th>
<th style="text-align:right;border-right:1px solid silver;border-bottom:1px solid silver;padding:10px;">Email</th>
<th style="text-align:right;border-right:1px solid silver;border-bottom:1px solid silver;padding:10px;">Permission</th>

</thead>
<?php foreach ($pager->getResults() as $user) {?>

<tr>
<td  width="1%" style="padding:10px;border-bottom:1px solid silver;border-right:1px solid silver">
<?php echo $user->getId();?>
</td>
<td   width="30%" style="padding:10px;border-bottom:1px solid silver;border-right:1px solid silver">
<?php echo $user->getFullName();?>

</td>
<td width="40%" style="padding:10px;border-bottom:1px solid silver;border-right:1px solid silver">
<?php echo $user->getEmail();?>

</td>
<td  style="padding:10px;border-bottom:1px solid silver;border-right:1px solid silver">
<?php $permissions = $user->getUser2Permissions();

foreach ($permissions as $permission) {

echo $permission->getPermission();

}


?>
<?php echo link_to('<img src="/images/icons/pencil.png">','/user/editPermission?id='.$user->getId());?>
</td>
</tr>
<?php }?>
</table>